home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / cdrtools-1.10 / include / unls.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-03-25  |  1.7 KB  |  55 lines

  1. /* @(#)unls.h    1.1 00/03/25 2000 J. Schilling */
  2. /*
  3.  *    Modifications to make the code portable Copyright (c) 2000 J. Schilling
  4.  *
  5.  *    Code taken from the Linux kernel.
  6.  */
  7. /*
  8.  * This program is free software; you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation; either version 2, or (at your option)
  11.  * any later version.
  12.  *
  13.  * This program is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  * GNU General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU General Public License
  19.  * along with this program; see the file COPYING.  If not, write to
  20.  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23. #ifndef _UNLS_H
  24. #define _UNLS_H
  25.  
  26. #ifndef _MCONFIG_H
  27. #include <mconfig.h>
  28. #endif
  29.  
  30. struct nls_unicode {
  31.     unsigned char uni1;
  32.     unsigned char uni2;
  33. };
  34.  
  35. struct nls_table {
  36.     char *charset;
  37.     unsigned char **page_uni2charset;
  38.     struct nls_unicode *charset2uni;
  39.  
  40.     void (*inc_use_count)     __PR((void));
  41.     void (*dec_use_count)     __PR((void));
  42.     struct nls_table *next;
  43. };
  44.  
  45. extern int        init_nls        __PR((void));
  46. extern int        register_nls        __PR((struct nls_table *));
  47. extern int        unregister_nls        __PR((struct nls_table *));
  48. extern struct nls_table *find_nls        __PR((char *));
  49. extern void        list_nls        __PR((void));
  50. extern struct nls_table *load_nls        __PR((char *));
  51. extern void         unload_nls        __PR((struct nls_table *));
  52. extern struct nls_table *load_nls_default    __PR((void));
  53.  
  54. #endif    /* _UNLS_H */
  55.